package com.kis.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kis.dao.StudentDao;
import com.kis.pojo.Clazz;
import com.kis.pojo.Student;
import com.kis.service.StudentService;

@Service("studentService")
public class StudentServiceImpl implements StudentService {
	

	@Autowired
	private StudentDao studentDao;
	
	public Clazz queryAllByClass(long id) {
		return studentDao.queryAllStudentByClassId(id);
	}
	public List<Student> queryClassStudents(long id) {
			return studentDao.queryClassStudents(id);
	}
	public List<Student> queryStuByName(String like) {
		return studentDao.queryStuLikeName(like);
	}
	public void addStudent(Student s) {
		studentDao.add(s);
	}

	public Student findStuById(long id) {
		// TODO Auto-generated method stub
		return null;
	}

	public void updateStu(Student s) {
		// TODO Auto-generated method stub
		
	}

	public void delStuById(long id) {
		// TODO Auto-generated method stub
		
	}



}
